package com.xiaobai.netease_news.model;

import org.json.JSONArray;
import org.json.JSONObject;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2015/6/25 0025.
 */
public class PlayerResponseData  {
    private List<Common> commonList;
    public void parseJSON(JSONObject json,String tid){
        JSONArray jsonArray = json.optJSONArray(tid);
        commonList = new ArrayList<Common>();
        for (int i = 0; i < jsonArray.length(); i++) {
            JSONObject jsonObject = jsonArray.optJSONObject(i);
            Common common = new Common();
            common.parseJSON(jsonObject);
            commonList.add(common);
        }
    }

    public List<Common> getCommonList() {
        return commonList;
    }
}
